import request from '@/utils/request'

// 查询非遗制作流程视频列表
export function listMakeVideo(query) {
  return request({
    url: '/books/makeVideo/list',
    method: 'get',
    params: query
  })
}

// 查询非遗制作流程视频详细
export function getMakeVideo(makeVideoId) {
  return request({
    url: '/books/makeVideo/' + makeVideoId,
    method: 'get'
  })
}

// 新增非遗制作流程视频
export function addMakeVideo(data) {
  return request({
    url: '/books/makeVideo',
    method: 'post',
    data: data
  })
}

// 修改非遗制作流程视频
export function updateMakeVideo(data) {
  return request({
    url: '/books/makeVideo',
    method: 'put',
    data: data
  })
}

// 删除非遗制作流程视频
export function delMakeVideo(makeVideoId) {
  return request({
    url: '/books/makeVideo/' + makeVideoId,
    method: 'delete'
  })
}
